<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<nav class="navbar navbar-default navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed"
				data-toggle="collapse" data-target="#navbar" aria-expanded="false"
				aria-controls="navbar">
				<span class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="<%=request.getContextPath()%>/index">岭师青年</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<c:if test="${column1 == true }">
					<li><a href="<%=request.getContextPath()%>/article/">投稿情况</a></li>
				</c:if>
				<c:if test="${column2 == true }">
					<li><a href="<%=request.getContextPath()%>/song/">点歌台</a></li>
				</c:if>
				<c:if test="${column3 == true }">
					<li><a href="<%=request.getContextPath()%>/vote/">团学系统投票</a></li>
				</c:if>
				<c:if test="${column4 == true }">
					<li><a href="<%=request.getContextPath()%>/system/">系统设置</a></li>
				</c:if>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li><a href="#" data-toggle="dropdown" role="button"
					aria-haspopup="true" aria-expanded="false"> <img
						src="/lsqn${loginUser.icon }" alt="icon" class="img-circle"
						id="icon"> ${sessionScope.loginUser.nickname } <span
						class="caret"></span>
				</a>
					<ul class="dropdown-menu">
						<li><a
							href="<%=request.getContextPath()%>/system/loginuser/update"
							target="content">个人资料</a></li>
						<li><a href="<%=request.getContextPath()%>/system/loginuser/updatepsw" target="content">修改密码</a></li>
						<li role="separator" class="divider"></li>
						<c:if test="${isSAdmin == true }">
							<li><a href="<%=request.getContextPath()%>/system/">系统设置</a></li>
							<li role="separator" class="divider"></li>
						</c:if>
						<li><a href="<%=request.getContextPath()%>/logout">退出</a></li>
					</ul></li>
			</ul>
		</div>
	</div>
</nav>